<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<!DOCTYPE html>
<html:html lang="true">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><bean:message key="welcome.title"/></title>
        <link href="css/mini3537.css?files=reset,common,form,standard,960.gs.fluid,simple-lists,block-lists,planning,table,calendars,wizard,gallery" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
        <link rel="icon" type="image/png" href="favicon-large.png">
        <script type="text/javascript" src="js/miniab15.php?files=html5,jquery-1.4.2.min,old-browsers,jquery.accessibleList,searchField,common,standard,jquery.tip,jquery.hashchange,jquery.contextMenu,list"></script>
        <html:base/>


    </head>
    <body >
        <%@ include file="/Header.jsp"%>
        <!-- ####################                  Vertical Menu                    ########################## -->
        <%@ include file="/verticalmenu.jsp"%>

        <!-- ####################                  Vertical Menu                    ########################## -->

        <!-- *************************************** Content *************************************************** -->

    <section class="grid_9">
        <div class="block-border">
            <html:form styleClass="block-content form"   action="land.do" >
                <h1>List Of Land</h1>

                <div class="block-controls">
                    
                    <input type="text" disabled="disabled"/>
                    <a  class="button">Search</a>
                </div>

                <div class="no-margin">
                    <table class="table" cellspacing="0" width="100%">

                        <thead>
                            <tr>
                                <th class="black-cell">
									No
                                </th>
                                <th scope="col">

								Lands Name
                                </th>

                                <th scope="col">

								Address
                                </th>
                                <th scope="col">

								BuildingPermit
                                </th>
                                <th scope="col">

								OccupancyPermit
                                </th>
                                <th scope="col">

								Square
                                </th>
                                <th scope="col" class="table-actions">Actions</th>

                            </tr>
                        </thead>

                        <tbody>


                            <logic:present name="LandsForm" property="arrLands">
                                <logic:iterate id="listLand" name="LandsForm"
                                               property="arrLands" indexId="index">
                                    <tr>
                                        <td><%=index.intValue() + 1%></td>
                                        <td>
                                            <bean:write name="LandsForm" property='<%="arrLands[" + index + "].name"%>' />
                                            <html:hidden name="LandsForm" property='<%="arrLands[" + index + "].id"%>'/>
                                        </td>
                                        <td><bean:write name="LandsForm"
                                            property='<%="arrLands[" + index + "].address"%>'/>
                                        </td>
                                        <td>
                                            <ul class="keywords">
                                                <li >
                                                    <bean:write name="LandsForm"
                                                    property='<%="arrLands[" + index + "].buildingPermit"%>'/>
                                                </li>
                                            </ul>

                                        </td>
                                        <td>
                                            <ul class="keywords">
                                                <li class="purple-keyword">
                                                    <bean:write name="LandsForm"
                                                    property='<%="arrLands[" + index + "].occupancyPermit"%>'/>
                                                </li></ul>
                                        </td>
                                        <td><bean:write name="LandsForm"
                                            property='<%="arrLands[" + index + "].square"%>'/>
                                        </td>

                                        <td>
                                            <a href="/NTB/land.do?method=editLand&type=edit1&id=${LandsForm.arrLands[ index ].id}" title="Edit" class="with-tip" ><img src="images/icons/fugue/pencil.png" width="18" height="18"></a>
                                            &nbsp;
                                            <a href="/NTB/land.do?method=deleteLand&id=${LandsForm.arrLands[ index ].id} "  title="Delete" class="with-tip"  > <img   src="images/icons/fugue/cross-circle.png" width="18" height="18"></a>
                                            &nbsp;
                                            <a href="/NTB/land.do?method=detailLand&id=${LandsForm.arrLands[ index ].id} " title="Detial" class="with-tip"><img src="images/icons/fugue/tick-circle-blue.png" width="18" height="18"></a>
                                        </td>
                                    </tr>
                                </logic:iterate>
                            </logic:present>

                        </tbody>

                    </table>
                </div>

                <ul class="message no-margin">
                    <li>Results 1 - 5 out of 23</li>
                </ul>

                <div class="block-footer">
                    
                    <ul class="controls-buttons">
                        <li><a  title="Previous"><img src="images/icons/fugue/navigation-180.png" width="16" height="16"> Prev</a></li>
                        <li><a  title="Page 1"><b>1</b></a></li>
                        <li><a title="Page 2" class="current"><b>2</b></a></li>
                        <li><a  title="Page 3"><b>3</b></a></li>
                        <li><a  title="Page 4"><b>4</b></a></li>
                        <li><a  title="Page 5"><b>5</b></a></li>
                        <li><a  title="Next">Next <img src="images/icons/fugue/navigation.png" width="16" height="16"></a></li>

                    </ul>

                    <img src="images/icons/fugue/arrow-curve-000-left.png" width="16" height="16" class="picto">

                    <span class="sep"></span>
                    <a href="/NTB/land.do?method=addLand" class="button">Add New</a>
                </div>

            </html:form></div>
    </section>
    <!-- *************************************** Content *************************************************** -->
</article>
<!--Footer-->
<%@ include file="/Footer.jsp"%>
<!-- Footer -->
</body>
</html:html>

<script type="text/javascript" >

</script>